<div xmlns:th="https://www.thymeleaf.org"
     th:fragment="widget (sidebar)"
     th:class="'card widget notice ' + ${sidebar.hide} + ' is-hidden-all'">
    <div class="card-title" th:with="defaultTitle=#{widget.notice.title}">
        <i th:class="${#strings.defaultString(sidebar.icon, 'ri-volume-up-line') + ' card-title-label'}"></i><span
            th:text="${#strings.defaultString(sidebar.title, defaultTitle)}"></span>
    </div>
    <th:block th:if="${#strings.isEmpty(sidebar.content)}">
        <div class="card-content">
            <p>[(${#messages.msg('widget.notice.default', site.title)})]</p>
        </div>
    </th:block>
    <th:block th:if="${!#strings.isEmpty(sidebar.content)}">
        <div class="card-content">
            [(${sidebar.content})]
        </div>
    </th:block>
</div>